//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.wowoai.common.reponsitory;

import java.io.Serializable;
import java.util.Optional;

/**
 * 增删改查的基本接口
 * @param <T>
 * @param <ID>
 */
public interface IBaseDao<T, ID extends Serializable> {
    <S extends T> S save(S var1);

    <S extends T> S update(S var1);

    <S extends T> Iterable<S> saveAll(Iterable<S> var1);

    <S extends T> Iterable<S> updateAll(Iterable<S> var1);

    Optional<T> getById(ID var1);

    boolean existsById(ID var1);

    Iterable<T> findAllById(Iterable<ID> var1);

    void deleteById(ID var1);

    void delete(T var1);

    void deleteAll(Iterable<ID> var1);
}
